@layout("../../../common/_body.html",{js:["/modular/sys/menu/menu_add.js"]}){
<div class="col-md-12">
    <div class="card">
        <div class="card-header">
            <h4>菜单添加</h4>
        </div>
        <div class="card-body">
            <form class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-xs-12" for="name">菜单名称</label>
                    <div class="col-xs-12">
                        <input class="form-control" type="text" id="name" name="name" placeholder="请输入菜单名称.."
                               required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="pId">父级菜单</label>
                    <div class="col-xs-12">
                        <input id="pId" name="pId" type="hidden"/>
                        <input class="form-control" type="text" id="p" placeholder="请选择父级菜单.." required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="pId">菜单地址</label>
                    <div class="col-xs-12">
                        <input class="form-control" type="text" id="url" name="url" placeholder="请输入菜单地址.." required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="role">菜单权限</label>
                    <div class="col-xs-12">
                        <input class="form-control" type="text" id="role" name="role" placeholder="请输入菜单权限.."
                               required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="isMenu">是否菜单</label>
                    <div class="col-xs-6">
                        <select class="form-control select2" id="isMenu" name="isMenu" required="required">
                            <option>请选择</option>
                            <option value="1">菜单</option>
                            <option value="2">按钮</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="sort">菜单排序</label>
                    <div class="col-xs-12">
                        <input class="form-control" type="text" id="sort" name="sort" placeholder="请输入菜单排序.."
                               required="required">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12" for="level">菜单层级</label>
                    <div class="col-xs-12">
                        <input class="form-control" type="text" id="level" name="level" placeholder="请输入菜单层级.."
                               required="required">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-xs-12">
                        <button class="btn btn-primary" type="button" id="submit">提交</button>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
@}